#pragma once
#include <Windows.h>
#include "CBase.h"
#include "SGD Wrappers/CSGD_Direct3D.h"

enum eCollType{NORMAL_COLLISION = 1, FIRE_TRAP, DEATH_TRAP};

class CLevelCollision : public CBase
{
	int m_nCollisionType;
public:
 	CLevelCollision(int nType, int nPosX, int nPosY, int nWidth, int nHeight)
	{
		m_nCollisionType = nType;
		SetType(LEVEL_COLLISION);
		SetWidth(nWidth);
		SetHeight(nHeight);
		SetPosX(nPosX+GetHalfWidth());
		SetPosY(nPosY+GetHalfHeight());
		SetOldPosX((float)nPosX);
		SetOldPosY((float)nPosY);
	}
	int CollisionType() const { return m_nCollisionType; }
	void CollisionType(int val) { m_nCollisionType = val; }
	void Render() 
	{
		/*if(m_nCollisionType == NORMAL_COLLISION)
			CSGD_Direct3D::GetInstance()->DrawRect(GetCollisionRect(), 128,128,128);
		else if(m_nCollisionType == DEATH_TRAP)
			CSGD_Direct3D::GetInstance()->DrawRect(GetCollisionRect(), 225,0,0);*/
	}
};